package com.xiaoshuidi.cloud.module.rooms.controller.admin.roomequipmentcategory.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 资产类别表
 * </p>
 *
 * @author Link
 * @since 2023-05-18
 */
@Schema(description = "资产类别表 树形")
@Data
public class EquipmentCategoryTreeResp {

    @Schema(description = "编码id", required = true)
    private Long id;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "父节点id")
    private Long pid;

    @Schema(description = "编码")
    private String code;
    private String unit;

    public EquipmentCategoryTreeResp(Long id, String name, Long pid, String code, String unit) {
        this.id = id;
        this.name = name;
        this.pid = pid;
        this.code = code;
        this.unit = unit;
    }
}
